<?php	
	Session::init();
	$logged = Session::get('loggedIn'); 
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="<?php echo URL; ?>app/public/bootstrap/css/bootstrap.min.css" media="screen">

<title><?php echo $this->title; ?></title>
</head>

<body>

<div class="navbar">
<div class="navbar-inner navbar-fixed-top">
<div class="container">

	
	<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
    	<span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </a>
    <a class="brand" href="<?=URL ?>index">SH3</a>
    
    <div class="nav-collapse collapse">
    <ul class="nav navbar-nav">
    <li><a href="<?= URL ?>contato">Contato</a></li>
    <?php if(!$logged) { ?>		
		<li><a href="<?= URL ?>login">Entrar</a></li>
    <?php } else { ?>
     	<li><a href="<?= URL ?>categorias">Categorias</a></li>
        <li><a href="<?= URL ?>miniaturas">Miniaturas</a></li>
    	<li><a href="<?= URL ?>admin/sair">Sair</a></li>
    <?php } ?>  
    <form class="navbar-search pull-right" method="post" action="<?= URL.'busca' ?>">
    	<input type="text" class="seach-query" name="valor" placeholder="Busca" autocomplete="on">
    </form>		
	</ul>
    </div>
    
</div>
</div>
</div>      
<div class="container">